package com.easyapi.dao.entity.api;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easyapi.dao.entity.BaseModel;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 项目数据源对接表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "api_center_project_datasource")
public class ApiCenterProjectDatasource extends BaseModel implements Serializable {
    private static final long serialVersionUID = 3654707778184433943L;
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 是否删除1--删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 项目id
     */
    @TableField(value = "project_id")
    private Long projectId;

    /**
     * 数据源id
     */
    @TableField(value = "datasource_id")
    private Long datasourceId;
}